package cn.edu.dzkd.software.controller;

import cn.edu.dzkd.software.service.DangerlevelService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: PDJ
 * Date: 2022/07/07 22:52
 * Description:
 * Version: V1.0
 */
@RestController
@RequestMapping("/dangerlevel")
public class DangerlevelController {
    @Resource
    private DangerlevelService dangerlevelService;

    @RequestMapping(value = "/selectAlldangerlevel", method = RequestMethod.GET)
    public Map<String, Object> selectAlldangerlevel() {
        return dangerlevelService.selectAlldangerlevel();
    }
}
